package cn.wolfcode.web.controller;

import cn.wolfcode.domain.Business;
import cn.wolfcode.service.IBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Author wyy
 * Date 2021/1/12 18:11
 **/
@Controller

public class IndexController {

    @Autowired
    private IBusinessService businessService;

    @RequestMapping("/index")
    public String index(Model model){

        Business business = businessService.selectByStore();
        model.addAttribute("business",business);

        return "/index";
    }
//    TODO 预约保存功能
}
